package com.tencent.qcloud.tim.demo.profile;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.tencent.qcloud.tim.demo.R;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import androidx.viewpager2.widget.ViewPager2;

import com.google.android.material.tabs.TabLayout;
import com.tencent.qcloud.tuicore.TUIConstants;
import com.tencent.qcloud.tuicore.TUICore;
import com.tencent.qcloud.tuicore.TUIThemeManager;
import com.tencent.qcloud.tuicore.interfaces.TUIExtensionInfo;

import com.tencent.qcloud.tuikit.tuiconversation.TUIConversationConstants;
import com.tencent.qcloud.tuikit.tuiconversation.TUIConversationService;
import com.tencent.qcloud.tuikit.tuiconversation.bean.ConversationGroupBean;
import com.tencent.qcloud.tuikit.tuiconversation.classicui.widget.ConversationTabLayoutMediator;
import com.tencent.qcloud.tuikit.tuiconversation.commonutil.TUIConversationLog;
import com.tencent.qcloud.tuikit.tuiconversation.interfaces.ConversationGroupNotifyListener;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
//消息界面的初始化

public class FirstPageFragment extends Fragment {
    private static final String TAG = FirstPageFragment.class.getSimpleName();
    private List<ConversationGroupBean> mConversationGroupBeans = new ArrayList<>();

    private View mBaseView;
    private ViewGroup searchLayout;
    private ViewGroup mTabLayout;
    private TabLayout mConversationTabLayout;
    private ViewGroup mConversationGroupSettingLayout;
    private ViewPager2 mViewPager;
    private ConversationTabLayoutMediator mediator;
    private FragmentStateAdapter adapter;
    private ConversationGroupNotifyListener conversationGroupNotifyListener;

    private int selectedColor;
    private int selectedPosition;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
        TUIConversationLog.d(TAG, "onCreateView");
        mBaseView = inflater.inflate(R.layout.activity_main_shouye, container, false);
        return mBaseView;
    }

    @Override
    public void onResume() {
        TUIConversationLog.d(TAG, "onResume");
        super.onResume();
    }

    @Override
    public void onDestroy() {
        TUIConversationLog.d(TAG, "onDestroy");
        super.onDestroy();
    }
}
